import aima.core.search.framework.GoalTest;

public class PacmanGoalTest implements GoalTest {

	@Override
	public boolean isGoalState(Object state) {
        final PacmanMap map = (PacmanMap) state;
        return map.getPacmanLocation().equals(map.getBoard().getFinishLocation());
	}

}
